package com.webdrider.security.exceptions;

import com.common.security.abstracts.AbstractException;

/**
 * Error code range: 1061 - 1080
 * 
 * @author Ady
 *
 */
public class ConverterException extends AbstractException {

	private static final long serialVersionUID = 1L;

	public static final int CONVERTER_EXCEPTION = 1061;
	private static final String MESSAGE_CONVERTER_EXCEPTION = "Unable to convert";
	
	public ConverterException(int code) {
		super(code,  getMessage(code));
	}
	
	private static String getMessage(int code) {
		switch (code) {
			case CONVERTER_EXCEPTION: {
				return MESSAGE_CONVERTER_EXCEPTION;
			}
			default: {
				return MESSAGE_ERROR_NOT_FOUND;
			}
		}
	}
}
